package com.zhuss.order.db.dao.ext;

import com.zhuss.order.db.entity.Order;
import com.zhuss.bean.bo.order.order.SearchOrderBo;
import com.zhuss.bean.vo.order.order.ListOrderVo;
import com.zhuss.bean.vo.order.order.DetailOrderVo;
import java.util.List;
import org.apache.ibatis.annotations.*;
import com.zhuss.order.db.dao.gen.*;

/**
 * @description: 订单数据库Dao
 * @author: zhushanshuo
 * @create: Wed Mar 24 22:32:50 CST 2021
 **/

@Mapper
public interface OrderDao extends OrderMapper {
	
	void create(Order record);
	
	void delete(Order record);

	List<Order> listAll();

	List<Order> listById(@Param("orderIdList") List<Long> orderIdList);
	
	List<Order> listByName(@Param("name") String name);
	
	List<ListOrderVo> list(SearchOrderBo bo);
	
	Integer countList(SearchOrderBo bo);

	DetailOrderVo detail(@Param("orderId") Long orderId);

}
